package org.example.springboot.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.List;

@Data
public class Articles {
  @JsonIgnoreProperties
  private Long id;
  private String title;
  private String content;
  private String summary;
  private String coverImage;
  private long authorId;
  private long categoryId;
  private String status;
  private long viewCount;
  private java.sql.Timestamp createdAt;
  private java.sql.Timestamp updatedAt;
  private java.sql.Timestamp publishedAt;

  @TableField(exist = false)
  private List<Tags> tags;
}
